package com.zw.cloud.tools.controller.sse.emitter;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * sse 长链接
 */
@Controller
@RequestMapping("/sse/index")
public class SseEmitterPageController {

    /**
     * 用于创建连接
     */
    @GetMapping
    //http://127.0.0.1:9040/sse/index
    public String ssePage() {
        return "sse";
    }

}
